package com.cskaoyan.shopping.service.remote;

import com.cskaoyan.mall.api.SearchProductServcice;
import com.cskaoyan.mall.dto.AllItemResponse;
import com.cskaoyan.shopping.service.IProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: 牟治宇
 * @description 搜索商品实现类
 * @date: 2022/8/6 12:21
 */

@RestController
public class SearchProductServiceImpl implements SearchProductServcice {

    @Autowired
    IProductService iProductService;

    @Override
    public AllItemResponse getAllProductItem() {
        return iProductService.getAllItems();
    }

}
